<?php

namespace admin\models\db;

use common\components\wsoftdelete\SoftDeleteBehavior;
use common\components\wtools\tools\ArrayHelper;
use yii\behaviors\BlameableBehavior;
use yii\behaviors\TimestampBehavior;

class ProductMaterials extends \common\models\db\ProductMaterials
{
    public function behaviors()
    {
        $behaviors = parent::behaviors();
        $behaviors = ArrayHelper::merge($behaviors, [
            'blameable' => [
                'class' => BlameableBehavior::class,
                'createdByAttribute' => 'created_by_admin',
                'updatedByAttribute' => 'updated_by_admin',
            ],
        ]);
        return $behaviors;
    }
}
